// 注册消息总线
// https://blog.csdn.net/weixin_42709536/article/details/125535156
//   https://blog.csdn.net/qq_41577134/article/details/119956038
import mitt from "mitt"


function setupBus(app) {

  app.config.globalProperties.$bus = mitt();

  // const $bus = {};
  // const emitter = mitt();
  // $bus.on = emitter.on
  // $bus.emit = emitter.emit
  // $bus.off = emitter.off
  //
  // app.config.globalProperties.$bus = $bus


}

export {setupBus}


